﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Milkify.Data
{
    public class KeyboardShortcutViewData : INotifyPropertyChanged
    {
        private string mVerb = string.Empty;
        public string Verb
        {
            get { return mVerb; }
            set { mVerb = value; OnPropertyChanged("Verb"); }
        }

        private string mNoun = string.Empty;
        public string Noun
        {
            get { return mNoun; }
            set { mNoun = value; OnPropertyChanged("Noun"); }
        }

        private string mContext = string.Empty;
        public string Context
        {
            get { return mContext; }
            set { mContext = value; OnPropertyChanged("Context"); }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        #endregion
    }
}
